{% extends "tj3/tj3.html" %}

{% block navigation %}
	<script type="text/javascript">
	var cols= ['alert','alertmessages','alertsummaries','alerttrend',
		'chart',// Gantt is only meaningful for taskreport 
		'complete', 'completed',
		'criticalness', // internal use by the scheduler
		'cost',
		'directreports','duration','duties','efficiency','effort',
		'effortdone','effortleft','email','end','flags',
		'followers','freetime','freework','fte','headcount',
		'hierarchindex',
		'id','index','inputs','journal','journal_sub',
		'journalmessages','journalsummaries','line',
		'managers',
		'maxend','maxstart','minend','minstart', // these values are not calculated
		'no','name','note','pathcriticalness','precursors','priority',
		'rate','reports','resources','responsible','revenue','scenario',
		'seqno','start','status','targets','webs','bsi',
		];

	$('document').ready(function(){
		$('#id_form-0-start').datepicker();
		$('#id_form-0-end').datepicker();
		$('#create_btn').button();
	});
	</script>

{% endblock %}


{% block content  %} 

<div class="ui-widget ui-widget-content">

	<h1 class="ui-widget ui-widget-header">Create a New Task Report</h1>
	
	
	<form action="." method="post" enctype="multipart/form-data">
	
	<table>
	{{ taskreport_formset.management_form }}
	{{ taskreport_formset }}
	</table>
	
	<input id="create_btn" type="submit" name="command" value="Create" class="button" />
	
	</form>
</div>
{% endblock content %}
